﻿using System;
using SharpSqlAnalyzer.nodes;
using SharpSqlAnalyzer.nodes.mdx;

namespace SharpSqlAnalyzer.stmt.mdx
{
	// Token: 0x020001A0 RID: 416
	public class TMdxExpression : TCustomSqlStatement
	{
		// Token: 0x06000E30 RID: 3632 RVA: 0x003099AD File Offset: 0x00307BAD
		public TMdxExpression(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstmdxexpression;
		}

		// Token: 0x06000E31 RID: 3633 RVA: 0x003099C1 File Offset: 0x00307BC1
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			this.expNode = (TMdxExpNode)this.rootNode;
			return 0;
		}

		// Token: 0x06000E32 RID: 3634 RVA: 0x003099E7 File Offset: 0x00307BE7
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000E33 RID: 3635 RVA: 0x003099F7 File Offset: 0x00307BF7
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			this.expNode.accept(v);
			v.postVisit(this);
		}

		// Token: 0x04001329 RID: 4905
		private TMdxExpNode expNode;
	}
}
